#ifndef __TDYNAMICARRAY_H_
#define __TDYNAMICARRAY_H_
#define ElementType int

class TDynamicArray
{
public:
    TDynamicArray();
    ~TDynamicArray();
    TDynamicArray(const TDynamicArray &d);
    TDynamicArray& operator=(const TDynamicArray &d);

    void Resize(ElementType newCapacity);

    void InsertTail(ElementType element);



private:

    int * a;
    int size;
    int capacity;
};





#endif